//
//  TBRDoPayCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/5/3.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TBRDoPayCell.h"

@implementation TBRDoPayCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(TBRDoPrepayModel *)model {
    _model = model;
    //@property (nonatomic,copy)NSString *iconImg;
    //@property (nonatomic,copy)NSString *titleStr;
    //@property (nonatomic,copy)NSString *detailTitleStr;
    //@property (nonatomic,copy)NSString *isSelect;
//    _img_icon.image = [UIImage imageNamed:model.iconImg];
    if ([model.isSelect isEqualToString:@"1"]) {
        _imv_isSelect.image = [UIImage imageNamed:@"checkBoxSeled"];
    }else {
        _imv_isSelect.image = [UIImage imageNamed:@"checkBox"];
    }
    _lbe_titleStr.text = model.titleStr;
    _lbe_detailTitleStr.text = model.detailTitleStr;
    //根据模型来判断--------------
}

- (IBAction)changeSelBtnClick:(UIButton *)sender {
    if (self.changeSelBtnBlock) {
        self.changeSelBtnBlock(_row);
    }
}

@end
